<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="nybanner">
    <img src="<?php echo IMG_PATH;?>nybanner.jpg">
</div>
<div class="topmenu-box">
    <div class="common-width">
        <div class="topmenu">
            <div class="topmenu-l">
                <ul>
                    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=c642561b80f76c40e3b7eef0adc45558&action=category&siteid=1&catid=16%7B%2Fpc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('siteid'=>'1','catid'=>'16{/pc','limit'=>'20',));}?>
                    <?php $n=1;if(is_array($data)) foreach($data AS $n) { ?>
                    <?php if($catid== $n['catid']) { ?>
                    <li class="gaoliang"><a href="<?php echo $n['url'];?>"><?php echo $n['catname'];?></a></li>
                    <?php } else { ?>
                    <li><a href="<?php echo $n['url'];?>"><?php echo $n['catname'];?></a></li>
                    <?php } ?>
                    <?php $n++;}unset($n); ?>
                </ul>
            </div>
            <div class="topmenu-r">
                <span>当前位置：</span><a href="<?php echo siteurl($siteid);?>" title="">首页</a> <i> - </i> <a href="">新闻资讯</a> <i> - </i> <em><?php echo $catname;?></em>
            </div>
        </div>
    </div>
</div>
<div class="xinwen-box">
    <div class="common-width">
        <div class="xinwen wow fadeInUp">
            <ul>
                <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=ef30d327d27ae8cc8a275a062138338f&sql=select+n.thumb%2Cn.updatetime%2Cn.url%2Cn.description%2Cn.title%2Cnd.content+from+news+as+n%2C+news_data+as+nd+WHERE+nd.id%3Dn.id+and+n.catid%3D18+order+by+n.id+desc&num=6&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$pagesize = 6;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$r = $get_db->sql_query("SELECT COUNT(*) as count FROM (select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE nd.id=n.id and n.catid=18 order by n.id desc) T");$s = $get_db->fetch_next();$pages=pages($s['count'], $page, $pagesize, $urlrule);$r = $get_db->sql_query("select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE nd.id=n.id and n.catid=18 order by n.id desc LIMIT $offset,$pagesize");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                <?php $n=1;if(is_array($data)) foreach($data AS $g) { ?>
                <li>
                    <div class="pic_box">
                        <a href="<?php echo $g['url'];?>" title=""><img src="<?php echo $g['thumb'];?>" alt="" /></a>
                    </div>
                    <div class="text_box">
                        <h1><a href="<?php echo $g['url'];?>" title=""><?php echo $g['title'];?></a></h1>
                        <p><?php echo str_cut($g['description'],130);?></p>
                    </div>
                    <div class="fot_box">
                        <span><?php echo date('Y-m-d',$g['updatetime']);?></span>
                        <a href="<?php echo $g['url'];?>" class="more">MORE</a>
                    </div>
                </li>
                <?php $n++;}unset($n); ?>
                <div class="clear"></div>
            </ul>
        </div>
        <div class="page" id="pages">
            <div class="box"><?php echo $pages;?></div>
        </div>
    </div>
</div>
<?php include template("content","footer"); ?>
